﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ECS.DAL.Entity
{
    public class WeightRecord : ObjectContext
    {
        #region private properties
        private string _slipId = string.Empty;
        private string _weightId = string.Empty;
        private int _weigthNo = 0;
        private float _grossWeight = 0;
        private float _tareWeight = 0;
        private float _netWeight = 0;
        private int _palletCount = 0;

        private string _appId = string.Empty;
        private string _device = string.Empty;
        private string _userId = string.Empty;
        #endregion
        #region public properties
        /// <summary>
        /// application Id
        /// </summary>
        public string AppId 
        {
            set
            {
                this._appId = value;
                base.UpdateObject();
            }
            get { return this._appId; }
        }
        /// <summary>
        /// Weight ID
        /// </summary>
        public string WeightId
        {
            set
            {
                this._weightId = value;
                base.UpdateObject();
            }
            get { return this._weightId; }
        }
        /// <summary>
        /// Slip ID
        /// </summary>
        public string SlipId 
        {
            set 
            { 
                this._slipId = value;
                base.UpdateObject();
            }
            get { return this._slipId; } 
        }
        /// <summary>
        /// Weight Number
        /// </summary>
        public int WeightNumber 
        {
            set 
            { 
                this._weigthNo = value;
                base.UpdateObject();
            }
            get { return this._weigthNo; }
        }
        /// <summary>
        /// Gross Weight
        /// </summary>
        public float GrossWeight 
        {
            set 
            { 
                this._grossWeight = value;
                base.UpdateObject();
            }
            get { return this._grossWeight; }
        }
        /// <summary>
        /// Tare Weight
        /// </summary>
        public float TareWeight 
        {
            set 
            { 
                this._tareWeight = value;
                base.UpdateObject();
            }
            get { return this._tareWeight; }
        }
        /// <summary>
        /// Net Weight
        /// </summary>
        public float NetWeight 
        {
            set 
            { 
                this._netWeight = value;
                base.UpdateObject();
            }
            get { return this._netWeight; }
        }
        /// <summary>
        /// pallet count
        /// </summary>
        public int PalletCount 
        {
            set 
            { 
                this._palletCount = value;
                base.UpdateObject();
            }
            get { return this._palletCount; }
        }
        /// <summary>
        /// Device
        /// </summary>
        public string Device 
        {
            set 
            { 
                this._device = value;
                base.UpdateObject();
            }
            get { return this._device; } 
        }
        /// <summary>
        /// User ID
        /// </summary>
        public string UserId 
        {
            set 
            { 
                this._userId = value;
                base.UpdateObject();
            }
            get { return this._userId; }
        }
        #endregion
    }
}
